package com.cuikaipeng.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import com.cuikaipeng.dao.PlantDao;
import com.cuikaipeng.entity.Plant;
import com.cuikaipeng.entity.PlantType;
import com.cuikaipeng.service.PlantService;
@Service
public class PlantServiceimpl implements PlantService{
	@Autowired
	private PlantDao dao;
	@Override
	public List<Plant> list(Plant plant) {
		// TODO Auto-generated method stub
		return dao.list(plant);
	}
	@Override
	public void add(Plant p) {
		dao.add(p);
		
	}
	@Override
	public List<PlantType> tlist() {
		// TODO Auto-generated method stub
		return dao.tlist();
	}
	@Override
	public Plant getplant(Integer id) {
		// TODO Auto-generated method stub
		return dao.getplant(id);
	}
	@Override
	public void update(Plant p) {
		dao.update(p);
		
	}
	@Override
	public void del(String ids) {
		dao.del(ids);
		
	}

}
